/**
 * NoSuchBoardException.java 1.0 2007-5-7 下午02:43:54,创建 by yangfan
 */


package org.in4j.bbs.exception;

import org.in4j.bbs.model.Board;

/**
 * 找不到指定论坛时抛出的异常...
 * @author yangfan
 * @version 1.0 2007-5-7 下午02:43:54,创建
 */
@SuppressWarnings("serial")
public class NoSuchBoardException extends BusinessException
{
	public NoSuchBoardException(Board board)
	{
		super("没有名字为:'" + board.getName() + "'的论坛.");
	}

	public NoSuchBoardException(String message)
	{
//		super("没有名字为:'" + boardName + "'的论坛.");
		super(message);
	}

//	public NoSuchBoardException(Throwable cause)
//	{
//		super(cause);
//	}

	public NoSuchBoardException(String message,Throwable cause)
	{
		super(message,cause);
	}
}
